# 配置
import os
import sys

# version文件全称
versionFileName = "Version.json"

ABInfoFileName = "ABInfo.json"

ABInfoFilePath = "VersionFiles/ABInfo.json"

# 更新资源文件目录
updateFilePath = "UpdateFile"

def GetAbsPath():
    absPath = None
    if getattr(sys, 'frozen', False):
        absPath = os.path.dirname(os.path.abspath(sys.executable))
    elif __file__:
        absPath = os.path.dirname(os.path.abspath(__file__))
    return absPath